<script>
if(self==top) window.open("?op=core&fp=logout","_top");

function date(Did){
  switch(Did){
  case 0:location.href=("?op=member_3d&fp=history_all&begin={calLastWeek1}&end={calLastWeek2}&check=1");break;
  case 1:location.href=("?op=member_3d&fp=history_all&begin={calThisWeek1}&end={today}&check=2");break;
  case 2:location.href=("?op=member_3d&fp=history_all&begin={minday}&end={today}&check=3");break;
  default:location.href=("?op=member_3d&fp=history_all");
  }
}

</script>
<br>
<div class="headtitle paperall clrBrd_all">
	<span style="padding:9px 0px 0px 8px;" class=head1>{gametypeStr} 帐户历史&nbsp;│【日期选择】：</span>
	<span style="padding:3px 0px 0px 5px;" class=head1>
      <input type="button" value="上周" class="btnchoice {class1}" onclick="javascript:date(0);">
      <input type="button" value="本周" class="btnchoice {class2}" onclick="javascript:date(1);">
      <input type="button" value="全部" class="btnchoice {class3}" onclick="javascript:date(2);">
  </span>
	<span style="padding:5px 8px 4px 0px;" class=head2>{slcList}&nbsp;&nbsp;&nbsp;<a href="javascript:window.print()">列印</a></span>
  </div>
<br style="clear:both;">

<table width="700" class="tblMy3D" >
<tr class="paperAll">
<td style="padding:8px 0px 5px 8px;">开奖日期&nbsp;【{begin}&nbsp;~&nbsp;{end}】</td>
<td style="padding:8px 5px 5px 0px;" align=right>下注金额</td>
<td style="padding:8px 5px 5px 0px;" align=right>退水</td>
<td style="padding:8px 5px 5px 0px;" align=right>结果</td>
</tr>
{list}
<tr class="paperAll">
<td style="padding:8px 5px 5px 0px;" align=right>合计</td>
<td style="padding:8px 2px 5px 0px;" align=right >{sum_amount}</td>
<td style="padding:8px 2px 5px 0px;" align=right >{sum_back1}</td>
<td style="padding:8px 2px 5px 0px;" align=right >{sum_result}</td>
</tr>
</table>

<script language="JavaScript">
$(function(){
  // 颜色变化
  $("tr[class=td2]").hover(
    function() {$(this).addClass("trover");}
    , function() {$(this).removeClass("trover");}
  );

});
</script>